# Maintainer:
# Contributor: Liam Timms <timms5000@gmail.com>
# Contributor: Patrice Peterson <runiq at archlinux dot us>

pkgname=python-sphinxcontrib-apidoc
pkgver=0.3.0
pkgrel=3
pkgdesc='A Sphinx extension for running 'sphinx-apidoc' on each build'
arch=(any)
url='https://github.com/sphinx-contrib/apidoc'
license=(BSD)
depends=(python-sphinx python-pbr)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=("https://pypi.io/packages/source/s/sphinxcontrib-apidoc/sphinxcontrib-apidoc-$pkgver.tar.gz")
sha256sums=('729bf592cf7b7dd57c4c05794f732dc026127275d785c2a5494521fdde773fb9')

build() {
  cd sphinxcontrib-apidoc-$pkgver
  python -m build --wheel --no-isolation
}


package() {
  cd sphinxcontrib-apidoc-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
